﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using WPFExcelReport.Helpers;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class UIMUX : ViewBase
    {
        public VICC_ABAUFM TMV
        {
            get
            {
                return (VICC_ABAUFM)MV;
            }
        }
        public UIMUX()
        {

        }

        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);

        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            base.Window_Loaded(sender, e);
        }
        public void GetInfo()
        {
            INFO = "";
            foreach(DataRow row in TBMain.Rows)
            {

            }
        }
      
    }
    public partial class UIMUX
    {
        #region ==MTYPE===========
        public static readonly DependencyProperty MTYPEProperty = DependencyProperty.Register("MTYPE",
            typeof(string), typeof(UIMUX),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMTYPEChanged));
        public string MTYPE
        {
            get
            {
                return (string)GetValue(MTYPEProperty);
            }
            set
            {
                SetValue(MTYPEProperty, value);
                OnMTYPEChg(value);
            }
        }
        private static void OnMTYPEChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIMUX;
            if (src != null)
            {
                src.MTYPE = (string)e.NewValue;
            }
        }
        public virtual void OnMTYPEChg(string value)
        { }
        #endregion
    }
}
